package com.origin.netlibrary.netapi

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*

interface DownloadService {


    /**
     *普通下载
     */
    @Streaming
    @GET
    fun download(@Url url: String): Call<ResponseBody>


    /*断点续传下载接口*/
    @Streaming
    /*大文件需要加入这个判断，防止下载过程中写入到内存中*/
    @GET
    fun breakPointDownload( @Header("RANGE") start: String, @Url url: String): Call<ResponseBody>



}